<?php
return [
    'httpserver' => [
        'host' => env('SERVER_HTTP_HOST', '0.0.0.0'),
        'port' => env('SERVER_HTTP_PORT', 8199),
    ],
    'tcpserver' => [
        'host' => env('SERVER_TCP_HOST', '0.0.0.0'),
        'port' => env('SERVER_TCP_PORT', 8099),
    ],
    'dispatch_mode' => env('SERVER_DISPATCH_MODE', 2),
    'worker_num' => env('SERVER_WORKER_NUM', 1),
    'task_worker_num' => env('SERVER_TASK_WORKER_NUM', 2),
    'task_timeout' => env('SERVER_TASK_TIMEOUT', 10),
    'timer_task' => env('SERVER_TIMER_TASK', true),
    'auto_reload' => env('SERVER_AUTO_RELOAD', true),
    'view_compile' => env('SERVER_VIEW_COMPILE', false),
    'execute_show_stat' => env('EXECUTE_SHOW_STAT', false),
    'scan_handler' => \Demo\App\Handler\ScanHandler::class,
    'error_handler' => \Demo\App\Exception\SworkException::class,
    'request_handler' => \Demo\App\Handler\RequestHandler::class,
    'table_size' => 51200,
    'table_col_data_size' => 256,
    'table_col_num_size' => 4,
    'table_col_items' => [
        'data1' => ['type' => \swoole_table::TYPE_STRING, 'size' => 256],
        'num2' => ['type' => \swoole_table::TYPE_INT, 'size' => 4],
    ],
];
